package com.pt25.base.dep.cassandra;


import com.datastax.driver.core.Cluster;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class CassandraService {
    @Resource(name = "cassandraClusters")
    private Map<String, Cluster> cassandraClusters;

    public Cluster getCassandraCluster(String name) {
        return cassandraClusters.get(name);
    }
}
